package se.mbaeumer.regexhelper.sample;

import se.mbaeumer.regexhelper.RegExpHelper;

/**
 * A sample class that calls the RegexpHelper
 * @author Martin
 *
 */
public class SampleValidator {

	/**
	 * @param args
	 */
	public static void main(String[] args) {		
	}
	
	public boolean validateName(String name){
		return name.matches(RegExpHelper.NAME);		
	}
	
	public boolean validateEmail(String email){
		return email.matches(RegExpHelper.EMAIL);
	}
	
	
	
	

}
